package com.cloud.api.domain.tsp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class VehicleDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "id")
    private String id;

    @Schema(description = "vin")
    @NotEmpty(message = "{validation.Information.vin}")
    @Size(max = 17,min = 17,message = "{validation.Information.vinSize}")
    private String vin;

    @Schema(description = "车型")
    private String model;

    @Schema(description = "SIM卡号")
    @NotEmpty(message = "{validation.Information.sim}")
    @Size(max = 13,message = "{validation.common.max}")
    private String simNumber;

    @Schema(description = "TBOX终端编号")
    @NotEmpty(message = "{validation.Information.tbox}")
    @Size(max = 17,min = 17,message = "{validation.Information.vinSize}")
    private String tboxNumber;

    @Schema(description = "ICCID")
    @NotEmpty(message = "{validation.Information.iccid}")
    @Size(max = 20,message = "{validation.common.max}")
    private String iccid;

    @Schema(description = "组织机构")
    @NotEmpty(message = "{validation.Information.dept}")
    private String dept;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;
}
